<?php
/* @var $this FeedbackController */

$this->breadcrumbs=array(
	'Feedback',
);
?>
<div class="list-member">
   <div id="grid">
      <table>
         <tr class="grid-header">
            <th class=""><input class="row-check-all" type="checkbox" id="chk_SelectAllRow"></th>
            <th style="width:36px;"><div>STT</div></th>
            <th><div><span class="GridColumnSort">Họ tên</span><div class="GridShortMain"><div class="GridShort"></div></div></div></th>
            <th><div><span class="GridColumnSort">Email</span><div class="GridShortMain"><div class="GridShort"></div></div></div></th>
            <th><div><span class="GridColumnSort">Nội dung</span><div class="GridShortMain"><div class="GridShort"></div></div></div></th>
            <th><div><span class="GridColumnSort">Ngày gửi</span><div class="GridShortMain"><div class="GridShort"></div></div></div></th>
        </tr>
        <?if(count($models) > 0){
         $i = 0;
         foreach($models as $model){
            //CVarDumper::dump($item,10,true);
            $i++;
            ?>
            <tr class="grid-row-<?php echo $i%2?>">
               <td class="select-row text-center">
                  <input class="row-check" type="checkbox" value="<?php echo $model->feed_id?>"/>
               </td>
               <td align="center"><?php echo $i?></td>
               <td>
                  <?php echo $model->feed_use_name?>
               </td>
               <td>
                  <?php echo $model->feed_use_email?>
               </td>
               <td>
                  <?php echo $model->feed_content?>
               </td>
               <td>
                  <?php echo date("H:i:s d/m/Y",$model->feed_date_create);?>
               </td>
          </tr>
         <?}
        }?>
       
      </table>
      <form class="form" id="option_form" action="" method="POST">
         <table>
            <tr>
               <td>  
                  Số dòng:
                  <select name="limit" id="limit">
                     <?foreach($rowList as $value){?>
                        <option value="<?php echo $value?>" <?php if($value == $limit) echo 'selected'?> > <?php echo $value?></option>
                     <?}?>
                  </select>
               </td>
               <td class="text-center">
                  Trang:
                  <input id="page_input" name="page" type="text" value="<?php echo $page?>" />
                  Tổng số:
                  <?php echo $total_pages?>
               </td>
               <td class="text-right">
                  Xem:
                     <?php echo $start + 1?>
                      - 
                     <?php 
                     $end = $limit*$page;
                     $end = ($end > $total_record) ? $total_record : $end;
                     echo $end ?>
                  Tổng số:
                     <?php echo $total_record?>
               </td>
            </tr>
         </table>
      </form>
   </div>
</div>

